package com.bw.liveplay.common.network

import android.widget.ImageView
import com.bumptech.glide.Glide
import com.bw.liveplay.App
import com.bw.liveplay.R

/**
 * @author KK
 * @description:
 * @date :2021/11/10 13:30
 *
 */
class LoadImage {

    companion object{
        fun loadMathImg(url :String,img:ImageView){
            Glide.with(App.instance()).load(url)
                .placeholder(R.drawable.xin2)
                .error(R.drawable.xin2)
                .centerCrop()
                .into(img)
        }
        fun loadcrile(url :String,img:ImageView){
            Glide.with(App.instance()).load(url)
                .placeholder(R.drawable.xin2)
                .error(R.drawable.xin2)
                .centerCrop()
                .circleCrop()
                .into(img)
        }
    }

}